import { createApp } from "vue";
import App from "./App.vue";
import "amfe-flexible";

import {
  Button,
  Field,
  CellGroup,
  Tabbar,
  TabbarItem,
  Search,
  Grid,
  GridItem,
  List,
  Swipe,
  SwipeItem,
  Overlay,
  Dialog,
  Icon,
  Divider,
  Tag,
  Popup,
} from "vant";


import "vant/lib/index.css";

import router from "@/router/index.js";

const app = createApp(App);
// 3.注册使用组件
app.use(Button);
app.use(Field);
app.use(CellGroup);
app.use(Tabbar);
app.use(TabbarItem);
app.use(Search);
app.use(Grid);
app.use(GridItem);
app.use(List);
app.use(Swipe);
app.use(SwipeItem);
app.use(Overlay);
app.use(Dialog);
app.use(Icon);
app.use(Divider);
app.use(Tag);
app.use(Popup);

app.use(router);
app.mount("#app");
